Add support for CEL-based mutation rules#125
Conversation
|
Skipping CI for Draft Pull Request. |
|
/test all |
|
/kind feature |
|
/retest |
|
/test pull-api-syncagent-test-e2e-kcp-0.27 |
4 similar comments
|
/test pull-api-syncagent-test-e2e-kcp-0.27 |
|
/test pull-api-syncagent-test-e2e-kcp-0.27 |
|
/test pull-api-syncagent-test-e2e-kcp-0.27 |
|
/test pull-api-syncagent-test-e2e-kcp-0.27 |
|
Okay it feels the tests are indeed much more stable now #jinxedit 🤞 |
On-behalf-of: @SAP christoph.mewes@sap.com
|
LGTM label has been added. DetailsGit tree hash: 2f0ad99862bfe0e28a349c545213d497c21e8f2c |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ntnn, xrstf The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Summary
This adds CEL-based mutations to the syncagent. CEl is nice because it allows for simply arithmetic and logic operations without the possibility to too much danger.
The implementation is quite simple: You configure a tuple of (path,expression) and then the agent will find the value at the given JSONPath in an object, process it using the CEL expression and then writes the resulting value back into the object. THe selected value and both full objects are available as variables in the expression.
What Type of PR Is This?
/kind feature
Related Issue(s)
Fixes #73
Release Notes